﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.ApplicationModel.Bootstrap.Behavior;
using YasharEl.Infrastructure.ApplicationModel.Bootstrap.Extensibility;

namespace YasharEl.Infrastructure.ApplicationModel.Bootstrap.Behavior
{
    /// <summary>
    /// A behavior aware component is responsible for managing behaviors.
    /// </summary>
    /// <typeparam name="TExtension">The type of the extension.</typeparam>
    public interface IBehaviorAware<out TExtension>
        where TExtension : IBootstrappingExtension
    {
        /// <summary>
        /// Adds the specified behavior.
        /// </summary>
        /// <param name="behavior">The behavior.</param>
        void Add(IBehavior<TExtension> behavior);
    }
}
